package com.xwh.week2;

public class Practice12 {
    public static void main(String[] args) {
        long ans=0;
        for(long i=1;;i++){
            if(method(ans)>=500){
                System.out.println(ans);
                return;
            }
            ans+=i;
        }
    }
    public static int method(long num){
        int count=0;
        for (long i = 1l; i*i <= num; i++) {
            if(num%i==0){
                if(i*i==num){
                    count++;
                }else {
                    count+=2;
                }
            }
        }
        return count;
    }
}
